import config from "../../config/index.js";

export default {
    getSiteInfo: {
        url: `${config.API_PREFIX}/blog/site/getSiteInfo`,
        name: "获取站点信息",
        get: () => {
            const siteInfo = {
                // 站点名称
                title: "程序员小航",
                // 站点别名
                alias: "程序员小航",
                // 站点LOGO
                logo: "/src/assets/images/logo.png",
                // 站点标语
                slogan: "学，而知不足； 教，然后知困。",
                // 首页地址
                homePath: "index",
                // 版权符号
                copyright: "©2018 - 2024 By ",
                // 备案号
                filings: "",
                // 站点创建时间
                buildDate: "2024-01-01",
            };
            return new Promise((resolve) => resolve(siteInfo));
        }
    },
    getSiteConfig: {
        url: `${config.API_PREFIX}/blog/site/getSiteConfig`,
        name: "获取站点配置",
        get: () => {
            const siteConfig = {
                // 随机前往一个网站
                showTraveling: false,
                // 随机前往一篇文章
                showArticle: false,
                // 切换模式
                showModel: true,
                // 显示搜索
                showSearch: true,
                // 显示控制台
                showConsole: true,
                // 侧边栏小板报标题
                reportTitle: "小板报",
                // 侧边栏评论标题
                talkTitle: "最新评论",
                // 侧边栏文章标题
                postTitle: "最近发布",
                // 侧边栏文章分类标题
                categoryTitle: "分类",
            };
            return new Promise((resolve) => resolve(siteConfig));
        }
    },
    getSiteCount: {
        url: `${config.API_PREFIX}/blog/site/getSiteCount`,
        name: "获取站点数据统计",
        get: () => {
            const siteCount = {
                // 文章数量
                articleCount: 110,
                // 文章分类数量
                categoryCount: 25,
                // 评论数量
                talkCount: 1105,
                // 访问量
                visitCount: 52150,
                // 建站天数
                buildCount: 2153,
                // 字数
                fontCount: 1987560,
            };
            return new Promise((resolve) => resolve(siteCount));
        }
    },
    getConsoleRecordList: {
        url: `${config.API_PREFIX}/blog/getConsoleRecordList`,
        name: "获取弹出层记录列表",
        get: () => {
            const recordList = [
                {param: "2023-10", date: "十月 2023", count: "18"},
                {param: "2023-09", date: "九月 2023", count: "28"},
                {param: "2023-08", date: "八月 2023", count: "38"},
                {param: "2023-07", date: "七月 2023", count: "48"},
                {param: "2022-09", date: "九月 2022", count: "58"},
                {param: "2022-06", date: "六月 2022", count: "68"},
                {param: "2021-11", date: "十一月 2021", count: "78"},
                {param: "2021-09", date: "九月 2021", count: "88"}
            ]
            return new Promise((resolve) => resolve(recordList));
        }
    },
    getAsideMessageList: {
        url: `${config.API_PREFIX}/blog/getAsideMessageList`,
        name: "获取侧边栏提示信息列表",
        get: () => {
            const messageList = [
                {content: '🤖️ 数码科技爱好者'},
                {content: '🔍 分享与热心帮助'},
                {content: '🏠 智能家居小能手'},
                {content: '🔨 设计开发一条龙'},
                {content: '🤝 专修交互与设计'},
                {content: '🏃 脚踏实地行动派'},
                {content: '🧱 团队小组发动机'},
                {content: '💢 壮汉人狠话不多'}
            ]
            return new Promise((resolve) => resolve(messageList));
        }
    },
    getIndexSayList: {
        url: `${config.API_PREFIX}/blog/getIndexSayList`,
        name: "获取首页说说列表",
        get: () => {
            const sayList = [
                {content: "Hello World！"},
                {content: "欢迎大家使用Halo-Theme-Hao主题！"},
                {content: "开源改变世界！"}
            ]
            return new Promise((resolve) => resolve(sayList));
        }
    },
    getIndexBanner: {
        url: `${config.API_PREFIX}/blog/getIndexBanner`,
        name: "获取首页轮播对象",
        get: () => {
            const banner = {
                title: "Halo Theme Hao",
                content: "更多信息请关注 GitHub",
                imageList: [
                    {
                        one: {
                            title: "AfterEffect",
                            color: "#989bf8",
                            src: "/src/assets/images/small_1.png"
                        },
                        two: {
                            title: "Sketch",
                            color: "#fff",
                            src: "/src/assets/images/small_2.png"
                        },
                    },
                    {
                        one: {
                            title: "Docker",
                            color: "#57b6e6",
                            src: "/src/assets/images/small_3.png"
                        },
                        two: {
                            title: "Photoshop",
                            color: "#4082c3",
                            src: "/src/assets/images/small_4.png"
                        },
                    },
                    {
                        one: {
                            title: "FinalCutPro",
                            color: "#fff",
                            src: "/src/assets/images/small_5.png"
                        },
                        two: {
                            title: "Python",
                            color: "#fff",
                            src: "/src/assets/images/small_6.png"
                        },
                    },
                    {
                        one: {
                            title: "Swift",
                            color: "#eb6840",
                            src: "/src/assets/images/small_7.png"
                        },
                        two: {
                            title: "Principle",
                            color: "#8f55ba",
                            src: "/src/assets/images/small_8.png"
                        },
                    },
                    {
                        one: {
                            title: "illustrator",
                            color: "#f29e39",
                            src: "/src/assets/images/small_9.png"
                        },
                        two: {
                            title: "CSS3",
                            color: "#2c51db",
                            src: "/src/assets/images/small_10.png"
                        },
                    },
                    {
                        one: {
                            title: "JS",
                            color: "#f7cb4f",
                            src: "/src/assets/images/small_11.png"
                        },
                        two: {
                            title: "HTML",
                            color: "#e9572b",
                            src: "/src/assets/images/small_12.png"
                        },
                    },
                    {
                        one: {
                            title: "Git",
                            color: "#df5b40",
                            src: "/src/assets/images/small_13.png"
                        },
                        two: {
                            title: "Apifox",
                            color: "#e65164",
                            src: "/src/assets/images/small_14.png"
                        },
                    },
                    {
                        one: {
                            title: "AfterEffect",
                            color: "#989bf8",
                            src: "/src/assets/images/small_15.png"
                        },
                        two: {
                            title: "Sketch",
                            color: "#fff",
                            src: "/src/assets/images/small_16.png"
                        },
                    },
                    {
                        one: {
                            title: "Docker",
                            color: "#57b6e6",
                            src: "/src/assets/images/small_17.png"
                        },
                        two: {
                            title: "Photoshop",
                            color: "#4082c3",
                            src: "/src/assets/images/small_18.png"
                        },
                    },
                    {
                        one: {
                            title: "AfterEffect",
                            color: "#989bf8",
                            src: "/src/assets/images/small_1.png"
                        },
                        two: {
                            title: "Sketch",
                            color: "#fff",
                            src: "/src/assets/images/small_2.png"
                        },
                    },
                    {
                        one: {
                            title: "Docker",
                            color: "#57b6e6",
                            src: "/src/assets/images/small_3.png"
                        },
                        two: {
                            title: "Photoshop",
                            color: "#4082c3",
                            src: "/src/assets/images/small_4.png"
                        },
                    },
                    {
                        one: {
                            title: "FinalCutPro",
                            color: "#fff",
                            src: "/src/assets/images/small_5.png"
                        },
                        two: {
                            title: "Python",
                            color: "#fff",
                            src: "/src/assets/images/small_6.png"
                        },
                    },
                    {
                        one: {
                            title: "Swift",
                            color: "#eb6840",
                            src: "/src/assets/images/small_7.png"
                        },
                        two: {
                            title: "Principle",
                            color: "#8f55ba",
                            src: "/src/assets/images/small_8.png"
                        },
                    },
                    {
                        one: {
                            title: "illustrator",
                            color: "#f29e39",
                            src: "/src/assets/images/small_9.png"
                        },
                        two: {
                            title: "CSS3",
                            color: "#2c51db",
                            src: "/src/assets/images/small_10.png"
                        },
                    },
                    {
                        one: {
                            title: "JS",
                            color: "#f7cb4f",
                            src: "/src/assets/images/small_11.png"
                        },
                        two: {
                            title: "HTML",
                            color: "#e9572b",
                            src: "/src/assets/images/small_12.png"
                        },
                    },
                    {
                        one: {
                            title: "Git",
                            color: "#df5b40",
                            src: "/src/assets/images/small_13.png"
                        },
                        two: {
                            title: "Apifox",
                            color: "#e65164",
                            src: "/src/assets/images/small_14.png"
                        },
                    },
                    {
                        one: {
                            title: "AfterEffect",
                            color: "#989bf8",
                            src: "/src/assets/images/small_15.png"
                        },
                        two: {
                            title: "Sketch",
                            color: "#fff",
                            src: "/src/assets/images/small_16.png"
                        },
                    },
                    {
                        one: {
                            title: "Docker",
                            color: "#57b6e6",
                            src: "/src/assets/images/small_17.png"
                        },
                        two: {
                            title: "Photoshop",
                            color: "#4082c3",
                            src: "/src/assets/images/small_18.png"
                        },
                    },
                ],
            };
            return new Promise((resolve) => resolve(banner));
        }
    },
}